package firstExercise;

import java.util.Scanner;

public class one_one {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        for(int i=0;i<3;i++){
            System.out.println(num%10);
            num=num/10;
        }
    }
}
